#include<iostream>
#include<opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main(void)
{
	Mat image;
	VideoCapture cap;
	cap.open(0);
	if(!(cap. isOpened()))
	{
		cout << "open error" << endl;
	}
	cout << "start rrabbing" << endl;
	while(1)
	{
		cap.read(image);
		imshow("camera",image);
		if(waitkey(40)!=255)
		{
			break;
		}

	}
	return 0;
}

